//
//  SNSearchBar.h
//  Shiyun_Newspaper
//
//  Created by Sylar on 2017/6/14.
//  Copyright © 2017年 ShiYun. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface SNSearchBar : UISearchBar

- (instancetype)initWithFrame:(CGRect)frame leftImage:(UIImage *)leftImage placeholderColor:(UIColor *)placeholderColor;

// 默认YES居中，通过设置NO，可居左
@property (nonatomic, assign, setter = setHasCentredPlaceholder:) BOOL hasCentredPlaceholder;

// searchField 左侧图片
@property (nonatomic, strong) UIImage *leftImage;

// placeholder颜色
@property (nonatomic, strong) UIColor *placeholderColor;




@end
